#include "Element_date.h"

int log_in (Sql_list_1 *s1, int *q,const char *user, const char *id) 
{  
    for (int i = 0; i <*q; i++) 
    {  
        if (strcmp( s1 [i].user, user) == 0) 
        {  
            if (strcmp(s1 [i].id, id) == 0) 
            {  
                return 1;
            }  
            break;
        }  
    }  
    return 0; // 未找到匹配的账号或密码不匹配  
}  
